/**
 *
 */
package com.adream.scalpel.security.server.system;

import org.springframework.security.GrantedAuthority;
import org.springframework.security.userdetails.UserDetails;

/**
 * @author apuranik
 *
 */
public class ScalpelUserDetails implements UserDetails {
    private String username;
    private String password;
    private Boolean enabled;

    /**
     * @param username
     *            The user name.
     * @param password
     *            Password of the user.
     * @param enabled
     *            The user's enabled status.
     */
    public ScalpelUserDetails(String username, String password, Boolean enabled) {
        this.username = username;
        this.password = password;
        this.enabled = enabled;
    }

    @Override
    public GrantedAuthority[] getAuthorities() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getPassword() {
        return password;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public boolean isAccountNonExpired() {
        return true;
    }

    @Override
    public boolean isAccountNonLocked() {
        return true;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return true;
    }

    @Override
    public boolean isEnabled() {
        return enabled;
    }
}
